
#ifndef ICL_H_
#define ICL_H_


#include <CL/opencl.h>
#include <stdint.h>

namespace icl
{
	enum ErrICL
	{
		NO_ERR = 0,
		ERR_PLATFORM_NOT_FOUND = 0xE0001001,
	};

	struct PlatformInfo
	{
		char *profile;
		char *version;
		char *name;
		char *vendor;
		char *extensions;
	};

	uint32_t getPlatformIDs(cl_platform_id **ret, size_t *ret_size);
	uint32_t getPlatformInfo(cl_platform_id id, PlatformInfo *ret);
	const char *getErrMessage(uint32_t err);
}

#endif /* ICL_H_ */